/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package crawler;

/**
 *
 * @author Will
 */
public class Options {

    /**Время ожидания ответа от сервера**/
    private static Integer connectionTimeout = 1000;
    /**User-agent**/
    private static String userAgent = "Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0";
    /**Максимальная удаленность от главной страницы**/
    private static Integer maxDist = 2;
    /**Количество потоков скачивания**/
    private static int threadsCount = 5;
    /**Смотрим ли в robots.txt**/
    private static boolean usingRobotsTxt = false;
    /**Robots используем как яндекс**/
    private static boolean robotsYandex = true;
    /**Robots используем как google**/
    private static boolean robotsGoogle = false;
    /**Используем ли метатэг robots**/
    private static boolean usingMetaRobots = true;

    public static Integer getConnectionTimeout() {
        return connectionTimeout;
    }

    public static boolean isUsingRobotsTxt() {
        return usingRobotsTxt;
    }

    public static boolean isRobotsGoogle() {
        return robotsGoogle;
    }

    public static boolean isRobotsYandex() {
        return robotsYandex;
    }

    public static Integer getMaxDist() {
        return maxDist;
    }

    public static int getThreadsCount() {
        return threadsCount;
    }

    public static String getUserAgent() {
        return userAgent;
    }

    public static void setConnectionTimeout(Integer connectionTimeout) {
        Options.connectionTimeout = connectionTimeout;
    }

    public static void setMaxDist(Integer maxDist) {
        Options.maxDist = maxDist;
    }

    public static void setThreadsCount(int threadsCount) {
        Options.threadsCount = threadsCount;


    }

    public static void setUserAgent(String userAgent) {
        Options.userAgent = userAgent;
    }
    
    public static boolean isUsingMetaRobots() {
        return usingMetaRobots;
    }



}
